package com.zfast.config.mapper;

import com.zfast.config.entity.Role;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Classname RoleMapper
 * @Description None
 * @Date 2019/7/18 8:38
 * @Created by WDD
 */
public interface RoleMapper {
    @Select("select role.id,role.name from t_sys_role role,t_sys_user admin where admin.rid = role.id and admin.id = #{adminId}")
    List<Role> findByAdminId(String adminId);
}
